package org.bao.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.bao.bean.AdminInfoBean;
import org.bao.bean.BankadminBean;
import org.bao.dao.BankadminBeanDao;
import org.bao.service.ILoginService;
import org.springframework.stereotype.Service;

@Service("loginS")
public class LoginServiceImpl implements ILoginService {
	// 依赖注入【反转控制】
	// 面向接口的编程
	@Resource
	private BankadminBeanDao loginD; // 按类型匹配进行注入

	@Override
	public List<AdminInfoBean> queryLoginInfo(AdminInfoBean adminB) {
		// 调用Dao层的业务逻辑处理，进行数据库查询操作
		List<AdminInfoBean> lstAdmins = loginD.queryLoginInfomysql(adminB);
		// 返回结果
		return lstAdmins;
	}

	@Override
	public List<BankadminBean> queryInfoByParams(BankadminBean adminB) {
		
		List<BankadminBean> lstBank = loginD.selectByBankadminB(adminB);
		
		return lstBank;
	}


}
